package com.example.demo_redis_test.dynamicproxy.cglib;

public class HelloService {
    public HelloService() {
        System.out.println("HelloService构造");
    }
    /**
     * 该方法不能被子类覆盖,Cglib是无法代理final修饰的方法的
     */
    public String sayOthers(String name) {
        System.out.println("HelloService:sayOthers>>"+name);
        return null;
    }
    public void sayHello() {
        System.out.println("HelloService:sayHello");
    }
}
